import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
// 导入字体图标
import'./assets/fonts/iconfont.css'
// 导入全局样式表
import './assets/css/global.css'


import axios from 'axios'
// import { from } from 'core-js/core/array'
//配置请求的根路径
axios.defaults.baseURL ='http://127.0.0.1:8888/api/private/v1/'
Vue.prototype.$http = axios
// 添加到vue.prototype.$http后,可以在每一个组件上通过this.$http获取axios 不必每个页面都import  axios   $http是自定义的属性名,可以随便起


Vue.config.productionTip = false
Vue.use(ElementUI)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
